<#assign el=args.htmlid?html>
<div id="${el}-dialog" class="create-site">
   <div class="hd">${msg("gwi.run.header.addRun")}</div>
   <div class="bd">
      <form id="${el}-form" method="POST" action="">
         <div class="yui-gd">
            <div class="yui-u first"><label for="${el}-runDate">${msg("gwi.run.label.date")}:</label></div>
            <div class="yui-u">
            	<input type="hidden" name="runDate" value""/>
               <select id="${el}-runDate" name="runDay">
                     <option value="0">${msg("gwi.run.label.today")}</option>
                     <option value="1">${msg("gwi.run.label.yesterday")}</option>
                     <option value="2">${msg("gwi.run.label.today_min_2")}</option>
                     <option value="3">${msg("gwi.run.label.today_min_3")}</option>
                     <option value="4">${msg("gwi.run.label.today_min_4")}</option>
                     <option value="5">${msg("gwi.run.label.today_min_5")}</option>
                     <option value="6">${msg("gwi.run.label.today_min_6")}</option>
               </select>
            </div>
         </div>
         <div class="yui-gd">
            <div class="yui-u first"><label for="${el}-runDistance">${msg("gwi.run.label.distance")}:</label></div>
            <div class="yui-u"><input id="${el}-runDistance" type="text" name="runDistance" tabindex="0" maxlength="255" />${msg("gwi.run.label.km")}&nbsp;*</div>
         </div>
         <div class="yui-gd">
            <div class="yui-u first"><label for="${el}-runType">${msg("label.type")}:</label></div>
            <div class="yui-u">
               <select id="${el}-runType" name="runType">
                     <option value="RUNNING">${msg("gwi.run.label.running")}</option>
                     <option value="CYCLING">${msg("gwi.run.label.cycling")}</option>
                     <option value="SWIMMING">${msg("gwi.run.label.swimming")}</option>
               </select>
            </div>
         </div>
		 <div class="yui-gd">
            <div class="yui-u first"><label for="${el}-url">${msg("gwi.run.label.url")}:</label></div>
            <div class="yui-u"><input id="${el}-url" type="text" name="runUrl" tabindex="0" maxlength="255" /></div>
         </div>
         <div class="bdft">
            <input type="submit" id="${el}-ok-button" value="${msg("button.ok")}" tabindex="0"/>
            <input type="button" id="${el}-cancel-button" value="${msg("button.cancel")}" tabindex="0"/>
         </div>
      </form>
   </div>
</div>

<script type="text/javascript">//<![CDATA[
Alfresco.util.addMessages(${messages}, "GWI.dashlet.AddRun");
//]]></script>
